<link rel="stylesheet" type="text/css" href="modules/InnoForum/pnjavascript/jquery.ad-gallery.1.2.4/jquery.ad-gallery.css">
<script type="text/javascript" src="modules/InnoForum/pnjavascript/jquery.ad-gallery.1.2.4/jquery.ad-gallery.js"></script>
<script type="text/javascript">
$(function() {
	$('img.image1').data('ad-desc', 'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.<br>And it contains <strong>H</strong>ow <strong>T</strong>o <strong>M</strong>eet <strong>L</strong>adies... <em>What?</em> That aint what HTML stands for? Man...');
	$('img.image1').data('ad-title', 'Title through $.data');
	$('img.image4').data('ad-desc', 'This image is wider than the wrapper, so it has been scaled down');
	$('img.image5').data('ad-desc', 'This image is higher than the wrapper, so it has been scaled down');
	var galleries = $('.ad-gallery').adGallery();
	$('#switch-effect').change(
		function() {
			galleries[0].settings.effect = $(this).val();
			return false;
		}
	);
	$('#toggle-slideshow').click(
		function() {
			galleries[0].slideshow.toggle();
			return false;
		}
	);
	$('#toggle-description').click(
		function() {
			if(!galleries[0].settings.description_wrapper) {
				galleries[0].settings.description_wrapper = $('#descriptions');
			} else {
				galleries[0].settings.description_wrapper = false;
			}
			return false;
		}
	);
});
</script>
<!--[topic_validate topic_id=$smarty.get.id]-->
<!--[if $topic_validate == 1]-->
  <!-- category & subcategory -->
  <!--[if not empty($_ERROR)]-->
  <div class="grid_23">
    <h1>
      <img align="absmiddle" src="<!--[modulepath]-->/pnimages/warning.png">&nbsp;<!--[$_ERROR]-->
    </h1>
  </div>
  <!-- <div class='error-block'><img align="absmiddle" src="<!--[modulepath]-->/pnimages/warning.png"></div> -->
  <!--[/if]-->
  <!-- Template -->
  <div id="breadcrumb">
  <div class="breadcrumb_l"></div>
  <div class="breadcrumb_c">
  	<ul>
        <li>
					<a href="<!--[pngetbaseurl]-->" >
						<strong>หน้าแรก</strong>
					</a>
				</li>
        <li>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' ]-->" >
						<strong><!--[pnml name='_INNOFORUM_USER_ViewAllTopic']--></strong>
					</a>
				</li>
        <li>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' type_id=$extendResult.type.id ]-->"
						title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_TYPEGO']-->&nbsp;<!--[$extendResult.type.name]-->">
						<strong><!--[$extendResult.type.name]--></strong>
					</a>
				</li>
				<!--[getcategory2_by_topic_id topic_id=$extendResult.topics.id]-->
        <li>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id ]-->" 
						title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$category_name]-->">
						<strong><!--[$category_name]--></strong>
					</a>
				</li>
				<!--[getsubcategory_by_topic_id topic_id=$extendResult.topics.id]-->				
				<!--[if $subcategory_id]-->				
        <li>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id  ]-->" 
						title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$subcategory_name]-->">
						<strong><!--[$subcategory_name]--></strong>
					</a>	
				</li>
				<!--[/if]-->
				<!--[getbrand_by_topic_id topic_id=$extendResult.topics.id]-->
				<!--[if $brand_id]-->	
        <li>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id brand_id=$brand_id]-->" 
						title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$brand_name]-->">
						<strong><!--[$brand_name]--></strong>
					</a>	
				</li>
				<!--[/if]-->
				<!--[getmodel_by_topic_id topic_id=$extendResult.topics.id]-->				
				<!--[if $model_id]-->					
        <li>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id model_id=$model_id]-->" 
						title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$model_name]-->">
						<strong><!--[$model_name]--></strong>
					</a>	
				</li>		
				<!--[/if]-->				
    </ul>
  </div>
  <div class="breadcrumb_r"></div>
  </div>
    <!--[include file='user_view_header.htm']-->
	<!-- ******************************************Start gallery****************************************** -->
			<div id="gallery" class="ad-gallery">
				<div class="ad-image-wrapper">
				</div>
				<div class="ad-controls">
				</div>
				<div class="ad-nav">
					<div class="ad-thumbs">
						<ul class="ad-thumb-list">
							<!--[check_image_directory_path id=$smarty.get.id]-->

							<!-- Other Image -->
							<!--[counter start=0 assign='image_index']-->
							<!--[foreach from=$extendResult.images item=image]-->
								<li>
									<a href="<!--[$large_directory_path]--><!--[$image.filename]-->">
										<img src="<!--[$medium_directory_path]--><!--[$image.filename]-->" title="<!--[$extendResult.topics.title]-->">
									</a>
								</li>
								<!--[counter]-->
							<!--[/foreach]--> 
						</ul>
						
					</div>
				</div>
			</div>
			<div id="descriptions"></div>
<!-- ******************************************End gallery****************************************** -->	
<!--[include file='user_ext_cardetail.htm']-->
<!-- ******************************************start topic****************************************** -->	
				<div id="topic">
				<div class="topic_l"></div>
				<div class="topic_c">
					<h1>
						<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='posts' id=$extendResult.topics.id]-->">
						<!--[$extendResult.topics.title]--></a>
					</h1>
				</div>
				<div class="topic_r"></div>
				</div>
<!-- ******************************************end topic****************************************** -->	
        <table id="zoom1" width="100%" cellpadding="5px" cellspacing="0px">  
          <tr>
            <td width="40%">
              <!--[pnml name='_INNOFORUM_USER_ReferenceCode']-->
            </td>
            <td width="60%">
              <strong class="text_dblue"><!--[$extendResult.topics.ref_id]--></strong>
            </td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_Categories']--></td>
            <td><strong class="text_dblue"><!--[$category]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_SubCategories']--></td>
            <td><strong class="text_dblue"><!--[$subcategory]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Want']--></td>
            <td><strong class="text_dblue"><!--[$extendResult.type.name]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Condition']--></td>
            <td><strong class="text_dblue"><!--[if $extendResult.topics.productstate eq intval('1')]--><!--[pnml name='_INNOFORUM_USER_FirstHand']--><!--[else]--><!--[pnml name='_INNOFORUM_USER_2ndHand']--><!--[/if]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_FORM_TOPICS_Brand']--></td>
            <td><strong class="text_dblue"><!--[$extendResult.topics.car_brand]--></strong></td>
          </tr>
          <tr>
            <td valign="top">ปีที่จดทะเบียน</td>
            <td><strong class="text_dblue"><!--[$extendResult.topics.car_registration]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_FORM_TOPICS_CarYear']--></td>
            <td><strong class="text_dblue"><!--[$extendResult.topics.car_year]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_Meter']--></td>
            <td><strong class="text_dblue"><!--[$extendResult.topics.car_kilometre]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_Color']--></td>
            <td><strong class="text_dblue"><!--[$extendResult.topics.car_color]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_Price']--></td>
            <td><strong class="text_dblue">
              <!--[if  is_numeric($extendResult.topics.price)]-->
                <!--[if $extendResult.topics.price eq '0' ]-->                    
                  <!--[pnml name='_INNOFORUM_USER_NoPrice']-->
                <!--[else]-->             
                  <!--[$extendResult.topics.price|number_format:0]-->&nbsp;<!--[pnml name='_INNOFORUM_USER_Baht']-->
                <!--[/if]-->  
              <!--[else]-->
                <!--[$extendResult.topics.price]-->
              <!--[/if]-->            
            </strong>
            </td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Location']--></td>
            <td><strong class="text_dblue"><!--[region_from_province province=$extendResult.topics.province ]--></strong></td>
          </tr>
          <tr>
            <td valign="top"><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_PostDate']--></td>
            <td><strong class="text_dblue"><!--[date_thai_format date=$extendResult.topics.cr_date usedate=true usetime=true]--></strong></td>
          </tr>
        </table>
        <!--[blockposition name=social]-->        
        <!--[if intval($user.uid) eq intval($extendResult.topics.cr_uid)]-->
          <h3>จัดการประกาศของท่าน</h3>
          <ul class="list-item">
            <li>
              <a href="<!--[pnmodurl modname='InnoForum' func='status' id=$extendResult.topics.id status=3 field='type_id']-->&forward[module]=InnoForum&forward[func]=list&forward[ctrl]=posts&forward[id]=<!--[$extendResult.topics.id]-->">
                <img src="<!--[modulepath]-->/pnimages/transmit.png" />
                &nbsp;เปลี่ยนเป็น <font color="#FF0000">"ซื้อขายแล้ว"</font>
              </a>
            </li>
            <li>
              <a href="<!--[pnmodurl modname='InnoForum' func='form' ctrl='Topics' id=$extendResult.topics.id]-->">
                <img src="<!--[modulepath]-->/pnimages/pencil.png" align="absmiddle">
                &nbsp;<!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Edit']-->
              </a>
            </li>
            <li>
              <a href="<!--[pnmodurl modname='InnoForum' func='delete' ctrl='Topics' id=$extendResult.topics.id uid=$user.uid]-->" onclick="return confirm('Are you sure you want to delete?')">
                <img src="<!--[modulepath]-->/pnimages/delete.png" align="absmiddle"/>
                &nbsp;<!--[pnml name='_INNOFORUM_USER_LIST_POSTS_DelTopic']-->
              </a>
            </li>
          </ul>
        <!--[/if]-->
        <!--[if $user.level eq '800']-->        
          <h3>ผู้ดูแลระบบ</h3>
          <ul class="list-item">
            <li>
              <a href="<!--[pnmodurl modname='InnoForum' func='form' ctrl='Topics' id=$_GET.id]-->" title="<!--[pnml name='_INNOFORUM_ADMIN_LIST_TOPICS_EDIT']-->">
                <img src="<!--[modulepath]-->/pnimages/pencil.png" />
                &nbsp;<!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Edit']-->
              </a>
            </li>
            <li>
              <a href="<!--[pnmodurl modname='InnoForum' func='delete' ctrl='Topics' id=$_GET.id uid=$user.uid]-->" title="<!--[pnml name='_INNOFORUM_ADMIN_LIST_TOPICS_DEL']-->" onclick="return confirm('Are you sure you want to delete?')">
                <img src="<!--[modulepath]-->/pnimages/delete.png" align="absmiddle"/>
                &nbsp;<!--[pnml name='_INNOFORUM_USER_LIST_POSTS_DelTopic']-->
              </a>
            </li>
          </ul>
        <!--[/if]-->
      <!--[get_gid_by_uid uid=$extendResult.topics.cr_uid]-->
      <div class="grid_6 omega">
        <span style="color:<!--[if $extendResult.type.id eq '2']-->#FF8000<!--[elseif $extendResult.type.id eq '3' || $extendResult.type.id eq '12']-->#FF0000<!--[elseif $extendResult.type.id eq '5' || $extendResult.type.id eq '8' || $extendResult.type.id eq '10' || $extendResult.type.id eq '14']-->#33CC00<!--[elseif $extendResult.type.id eq '13']-->#440e62<!--[elseif $extendResult.type.id eq '15']-->#ec008c<!--[elseif $extendResult.type.id eq '17']-->#ecac00<!--[else]-->#0080FF<!--[/if]-->">
          <h2 class="text_center"><!--[$extendResult.type.name]--></h2>       
            <!--[if  is_numeric($extendResult.topics.price)]-->
              <!--[if $extendResult.topics.price eq '0' ]-->                    
                <h2 class="text_center"><!--[pnml name='_INNOFORUM_USER_NoPrice']--></h2>
              <!--[else]-->             
                <h2 class="text_center"><!--[$extendResult.topics.price|number_format:0]-->&nbsp;<!--[pnml name='_INNOFORUM_USER_Baht']--></h2>
              <!--[/if]-->  
            <!--[else]-->
              <h2 class="text_center"><!--[$extendResult.topics.price]--></h2>
            <!--[/if]-->    
          <!--[if  $extendResult.topics.province]-->    
            <h3 class="text_center text_dgray"><strong><!--[region_from_province province=$extendResult.topics.province ]--></strong></h3>     
          <!--[/if]-->  
        </span>   
        <strong class="text_dblue"><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_AuthorDetail']--></strong>
        <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='Topics' user_id=$extendResult.topics.cr_uid]-->">
          <h3 class="text_center text_dorange"><!--[$extendResult.topics.name]--></h3>
          <p class="text_center"><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_ViewOtherTopic']--></p>
        </a>
        <div id="zoom2">
        <p><img src="<!--[modulepath]-->/pnimages/telephone.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[$extendResult.topics.phone1]--></p>
        <p><img src="<!--[modulepath]-->/pnimages/email.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[$extendResult.topics.email]--></p>
        <p><img src="<!--[modulepath]-->/pnimages/world.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[$extendResult.topics.url]--></p>
        <p><img src="<!--[modulepath]-->/pnimages/house.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[$extendResult.topics.address1]--> <!--[$extendResult.topics.city]--> <!--[$extendResult.topics.state]--> <!--[$extendResult.topics.zip]--></p>
        <p><img src="<!--[modulepath]-->/pnimages/server.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[hidden_ip ip=$extendResult.topics.ipaddress]--></p>
        </div>
      </div>
  </div>
  <!-- end top detail -->
  <div class="grid_16 alpha" style="overflow-x:hidden">
  <!--[blockposition name=ad-fp2]-->
  <!--[if $extendResult.topics.car_option]-->
  <table width="99%" cellpadding="5px" cellspacing="0px" style="background-color:#FFFFFF; border:1px solid #CCCCCC; text-align:left;">
    <tr class="orange_header">
      <td>
        <h3 class="text_horange"><!--[pnml name='_INNOFORUM_USER_Accessories']--></h3>  
      </td>
    </tr>
    <tr>
      <td>
        <div id="zoom4">
          <fieldset style="border:1px solid #eee">
            <!--[convertlink data=$extendResult.topics.car_option  topic_uid=$extendResult.topics.cr_uid]-->
          </fieldset>
        </div>
      </td>
    </tr>
  </table>
  <!--[/if]-->
  <!-- end detail -->
  <!--[blockposition name=ad-fp4]-->
  <!--[get_carproperty_by_serialize_id id=$extendResult.topics.carproperty_id]-->
  <!--[if $carpropertyName]-->
  <table width="99%" cellpadding="5px" cellspacing="0px" style="background-color:#FFFFFF; border:1px solid #CCCCCC; text-align:left;">
    <tr class="violet_header">
      <td>
        <a name="detail" id="detail"><h3 class="text_hviolet">คุณลักษณะ</h3></a>
      </td>
    </tr>
    <tr>
      <td>
        <fieldset style="border:1px solid #eee">
        <!-- carproperty --> 
        <!--[foreach from=$carpropertyName item=item]-->
          <!--[$item.name]-->
        <!--[/foreach]-->
        </fieldset>
      </td>
    </tr>
  </table>
  <!--[/if]-->
  <!-- end option -->
  <!-- comment -->
  <!--[blockposition name=ad-fp3]--><hr />
  <div style="width:100%" class="text-right">
				<!--[innopager  show=page												
                								img_prev="modules/InnoForum/pnimages/back.png"
												img_next="modules/InnoForum/pnimages/next.png"
												rowcount=$pager.numitems 
												limit=$pager.itemsperpage 
												posvar=startnum 
												shift=0
												request_uri=$smarty.server.REQUEST_URI						
												
				]-->
  </div>
  <table width="99%" cellpadding="5px" cellspacing="0px" style="background-color:#FFFFFF; border:1px solid #CCCCCC; text-align:left;">
    <tr class="gray_header">
      <td>
        <h3><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Comment_List']--></h3>
      </td>
    </tr>
    <tr id="zoom5">
      <td>
		
		<!--[return_count_from_db table="innoforum_posts" group_by="pst_topics_id" where_field="pst_topics_id" where_param= $smarty.get.id]-->
		
		
		<!--[php]-->
			
			$r_count = $this->get_template_vars('return_count');;
			$count_post = $r_count - $_GET[startnum];

		<!--[/php]-->
        <!--[foreach from=$objectArray item=item]-->

        <table width="100%" cellpadding="5px" cellspacing="3px" align="center" class="post-color" style="border:1px solid #CCCCCC; text-align:left;">
          <tr>        
            <td colspan="2" class="post-header">
              <table width="100%">
                <tr>
                  <td align="left">               
                    <!--[if $user.level eq '800']-->
                      <a href="<!--[pnmodurl modname='InnoForum' func='delete' ctrl='posts' id=$item.id topic_id=$smarty.request.id]-->" onclick="return confirm('Are you sure you want to delete?')">
                        <img src="<!--[modulepath]-->/pnimages/comment_delete.png" align="absmiddle" />
                      </a>
                    <!--[else]-->
                    <img src="<!--[modulepath]-->/pnimages/comment.png" width="16px" height="16px" align="absmiddle"/>
                    <!--[/if]-->
                    <!--[pnml name='_INNOFORUM_USER_LIST_POSTS_No']-->&nbsp;
					<!--[php]-->
						echo $count_post--;
					<!--[/php]-->
                  </td>
                  <td align="right">
                    <img src="<!--[modulepath]-->/pnimages/calendar_view_day.png" width="16px" height="16px" align="absmiddle"/>
                    <!--[date_thai_format date=$item.lu_date usedate=true ]-->
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        
          <tr>
            <td width="20%" valign="top" align="center">
              <!--[$item.name]-->
              <!--[if $item.avatar]-->
                <img src="images/avatar/<!--[$item.avatar]-->" align="absmiddle" />    
              <!--[else]-->
                <img src="images/no-pic.png" align="absmiddle" />
              <!--[/if]-->
            </td>
            <!--[get_gid_by_uid uid=$item.uid]-->
            <td width="80%" valign="top" <!--[if $gid eq '2' || $gid eq '6']-->style="background:url(<!--[modulepath]-->/pnimages/gold-badge.png) no-repeat 400px bottom;"<!--[elseif $gid eq '5']-->style="background:url(<!--[modulepath]-->/pnimages/silver-badge.png) no-repeat 10px 10px;"<!--[/if]-->>
            <!--[convertlink data=$item.detail  topic_uid=$extendResult.topics.cr_uid]-->            
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <hr />
              <table width="100%" cellpadding="3px" cellspacing="0px" style="background-color:#F9FDFE;">
                <tr>
                  <td align="left">
                    <img src="<!--[modulepath]-->/pnimages/telephone.png" width="16px" height="16px" align="absmiddle"/>
                    <!--[$item.telephone]-->&nbsp;
                    <img src="<!--[modulepath]-->/pnimages/email.png" width="16px" height="16px" align="absmiddle"/>
                    <!--[$item.email]-->
                  </td>
                  <td align="right">
                    <img src="<!--[modulepath]-->/pnimages/server.png" width="16px" height="16px" align="absmiddle"/>
                    <!-- <!--[$item.ipaddress]--> --><!--[hidden_ip ip=$item.ipaddress]-->
                  </td>
                </tr>
              </table>
          </tr>
        </table>
        <!--[/foreach]-->
				<!--[innopager  show=page												
                								img_prev="modules/InnoForum/pnimages/back.png"
												img_next="modules/InnoForum/pnimages/next.png"
												rowcount=$pager.numitems 
												limit=$pager.itemsperpage 
												posvar=startnum 
												shift=0
												request_uri=$smarty.server.REQUEST_URI						
												
				]-->
      </td>
    </tr>
    <tr>
      <td>      
        <form action="<!--[pnmodurl modname='InnoForum' type='userform' func='submit' ctrl='Posts']-->" method="post" enctype="multipart/form-data"  id="post_form"  onsubmit="return validateForm(this)">
        <input type="hidden" name="forward[modname]" value="InnoForum" />
        <input type="hidden" name="forward[type]" value="user" />
        <input type="hidden" name="forward[func]" value="list" />
        <input type="hidden" name="forward[ctrl]" value="posts" />
        <input type="hidden" name="forward[id]" value="<!--[$extendResult.topics.id]-->" />
        <input type="hidden" name="form[topics_id]" value="<!--[$extendResult.topics.id]-->">
        <input type="hidden" name="form[is_sendmail]" value="<!--[$extendResult.is_sendmail]-->">
        <input type="hidden" name="form[avatar]" value="<!--[$user._YOURAVATAR]-->">
        <input type="hidden" name="form[uid]" value="<!--[$user.uid]-->">
        <!--[getip]-->
        <!--[if ($item.ipaddress == $ip && $user.uid == $item.uid)]-->
          <input type="hidden" name="form[post_id]" value="<!--[$item.id]-->">
        <!--[/if]-->
        
        <table width="100%" align="center" class="comment">
          <tr>
            <td width="130px" valign="top" align="center">
              <!--[if $user._YOURAVATAR]-->
                <!--[$user._UREALNAME]-->
                <img src="images/avatar/<!--[$user._YOURAVATAR]-->" align="absmiddle" />
              <!--[else]-->
                <a href="index.php?module=Users&func=register" target="_blank">
                  <!--[pnml name='_BLOCKNEWUSERREG']-->
                  <img src="images/no-pic.png" align="absmiddle" />
                </a>
              <!--[/if]-->  
              <!--[if intval($user.level) gte 300]-->     
              <h3><!--[pnml name='_INNOFORUM_USER_PAGE_PROFILE_MyProfile']--></h3>
              <ul class="list-item">    
                <li>
                  <img src="<!--[modulepath]-->/pnimages/image_edit.png" width="16px" height="16px" align="absmiddle"/>
                  <a href="<!--[pnmodurl modname='Avatar']-->" target="_blank">
                    <!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Avatar_Edit']-->
                  </a>
                </li>
                <li>
                  <img src="<!--[modulepath]-->/pnimages/user_edit.png" width="16px" height="16px" align="absmiddle"/>
                  <a target='_blank' href="<!--[pnmodurl modname='Profile' func='modify']-->">
                    <!--[pnml name='_INNOFORUM_USER_LIST_POSTS_EditProfile']-->
                  </a>
                </li>
                <li>
                  <img src="<!--[modulepath]-->/pnimages/lock_open.png" width="16px" height="16px" align="absmiddle"/>
                  <a href="<!--[pnmodurl modname='Users' func='logout']-->">
                    <!--[pnml name='_INNOFORUM_USER_LIST_POSTS_LogOut']-->
                  </a>
                </li>
              </ul>
              <!--[/if]-->
            </td>
            <td valign="top">
              <table>
              <tr>
                  <td align="right">
                  <!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Reply']-->
                  </td>
                  <td align="left" class="width7">
                  <input type="text" name="form[name]" size="20" value="<!--[$user._UREALNAME|strip_tags]-->" class="text width7" id="name">
                  </td>
                  <td><font size="3" color="#ff0000"><div id="error-name">*</div></font></td>
                </tr>
                <tr>
                  <td align="right">
                  <!--[pnml name='_INNOFORUM_USER_Phone']-->
                  </td>
                  <td align="left" class="width7">
                  <input type="text" name="form[telephone]" size="20" value="<!--[$user._TELEPHONE|strip_tags]-->" class="text width7" id="telephone">
                  </td>
                  <td><font size="3" color="#ff0000"><div id="error-telephone">*</div></font></td>
                </tr>
                <tr>
                  <td align="right">
                  <!--[pnml name='_BLOCKEMAIL']-->
                  </td >
                  <td align="left" class="width7">
                  <input type="text" name="form[email]" size="20" value="<!--[$user._UFAKEMAIL|strip_tags]-->" class="text width7" id="email">
                  </td>
                  <td><font size="3" color="#ff0000"><div id="error-email">*</div></font></td>
                </tr>
              </table>        
              <img src="<!--[modulepath]-->/pnimages/74.png" width="16px" height="16px" align="absmiddle"/>
              <!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Emoicon']-->
              <img src="files/images/tb_image.gif"  width="16px" height="16px" align="absmiddle"/>
              กว้างไม่เกิน 400px
              <!--[spaw_editor name='form[detail]' height='200px' width='100%' toolbarset="mini"]-->
            </td>
          </tr>
          <!--[pnuserloggedin assign='is_loggedin']-->
          <!--[if not $is_loggedin]-->
            <tr>
            <td>&nbsp;</td>
            <td>
              <TABLE>
                <TR>
                  <TD><!--[captcha]--></TD>
                  <TD><input type="text" name="form[captcha]" size="10" id="captc"></TD>
                  <td><font size="3" color="#ff0000"><div id="error-captcha">*</div></font></td>
                </TR>
              </TABLE>
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>
              <font color="blue"> 
              * <!--[pnml name='_INNOFORUM_USER_LIST_POSTS_CodeA']-->
              * <!--[pnml name='_INNOFORUM_USER_LIST_POSTS_CodeB']-->
              </font>
            </td>
          </tr>
          <!--[/if]-->
          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" name="button_submit" value="<!--[pnml name='_INNOFORUM_USER_BUTTON_Submit']-->" />
            <input type="reset" name="button_reset" value="<!--[pnml name='_INNOFORUM_USER_BUTTON_Clare']-->"/></td>
          </tr>
        </table>
        </form>   
      
      </td>
    </tr>
  </table>
  <!-- end comment -->
<!--[else]-->
<!--[/if]-->